package com.example.myapplication.lol.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.myapplication.R;
import com.example.myapplication.lol.bean.CloudBean;

import org.jetbrains.annotations.NotNull;

public class CloudAdapter extends BaseQuickAdapter<CloudBean, BaseViewHolder> {
    public CloudAdapter() {
        super(R.layout.item_cloud_info);
    }

    @Override
    protected void convert(@NotNull com.chad.library.adapter.base.viewholder.BaseViewHolder baseViewHolder, com.example.myapplication.lol.bean.CloudBean bean) {
        baseViewHolder.setText(R.id.cloud_title,bean.getTitle());
        baseViewHolder.setText(R.id.cloud_text,"虎牙|King亚索");
        baseViewHolder.setImageResource(R.id.cloud_head1,R.drawable.head1);
        baseViewHolder.setImageResource(R.id.cloud_head2,R.drawable.head2);
        baseViewHolder.setImageResource(R.id.cloud_head3,R.drawable.head3);
        baseViewHolder.setImageResource(R.id.cloud_head4,R.drawable.head4);
        baseViewHolder.setImageResource(R.id.cloud_head5,R.drawable.head5);
        baseViewHolder.setImageResource(R.id.cloud_head6,R.drawable.head6);
        baseViewHolder.setImageResource(R.id.cloud_head7,R.drawable.head7);
        baseViewHolder.setImageResource(R.id.cloud_head8,R.drawable.head8);
        baseViewHolder.setImageResource(R.id.cloud_head,R.drawable.head6);
    }
}